#include "ILogger.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdarg.h>
#include <pthread.h>

void ILogger::logger(LoggerAppendData *data,LogLevelType nLogLevel,const char* pFormat, ...)
{
    unsigned int ret = 0;
    char buf[512] = {0};
    //pthread_t tid = pthread_self();

    va_list arglist;
    va_start(arglist, pFormat);
    // Format the log as a string
    ret = vsnprintf(buf , sizeof(buf)/sizeof(buf[0]) , pFormat, arglist);
    va_end(arglist);

    log(data,nLogLevel,buf);
    (void) ret;

    return ;

}

